package entity;

public enum Level {
	High("高"), Medium("中"), Low("低");
	
	private String value;
	Level(String value){
		this.value=value;
	}
	
	public String toString(){
		return value;
	}
	
	public static Level stringToLevel(String s){
		for(Level l : Level.values()){
			if(s.equals(l.value))
				return l;
		}
		return null;
	}
}
